import request from '../utils/request';


/**
 * 获取所有申请信息,包括条件查询接口
 * @param query
 * @returns {AxiosPromise}
 */
export const getApplyInfo = query =>{
    return request({
        url:'/common/apply/getApplyInfo',
        method:'get',
        params:query
    })
};
/**
 * 保存申请信息接口
 * @param data
 * @returns {AxiosPromise}
 */
export const saveApplyInfo = data =>{
    return request({
        url:'/common/apply/saveApplyInfo',
        method:'post',
        data
    })
};
/**
 * 更新申请信息接口
 * @param data
 * @returns {AxiosPromise}
 */
export const updateApplyInfo = data =>{
    return request({
        url:'/common/apply/updateApplyInfo',
        method:'put',
        data
    })
};
/**
 *根据id删除申请信息接口
 * @param id
 * @returns {AxiosPromise}
 */
export const delApplyInfo = id =>{
    return request({
        url:'/common/apply/delApplyInfo',
        method:'delete',
        params:{id:id}
    })
};
/**
 * 根据id集合批量删除申请信息接口
 * @param id
 * @returns {AxiosPromise}
 */
export const delBatchApplyInfo = id =>{
    return request({
        url:'/common/apply/delBatchApplyInfo',
        method:'delete',
        params:{idList:id}
    })
};


